<?php
/**
 * @version		$Id$
 * @category	DOCmanPopulate
 * @package		DOCmanPopulate15
 * @copyright	Copyright (C) 2003 - 2010 Johan Janssens and Mathias Verraes. All rights reserved.
 * @license		GNU GPLv2 <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
 * @link     	http://www.joomladocman.org
 */
defined('_JEXEC') or die('Restricted access');

class TablePopulateParams 
{

    var $dmcounter 			= 0;
    var $checked_out 		= 0;
    var $checked_out_time 	= '0000-00-00 00:00:00';
    var $owner				= 0;
    var $dmowner            = 0;
    var $dmmantainedby      = -1;
    var $dmlastupdateon 	= null;
    var $dmdate_published 	= null;
    var $docman_version		= null;
    var $dmpath				= null;


    public function __construct() 
    {
        $this->docman_version	= _DM_VERSION;
        $this->dmpath			= PopulateDocman::get()->getCfg( 'dmpath' );

        // calculated at runtime
        $this->dmdate_published = date( 'Y-m-d H:i:s' );
        $this->dmlastupdateon	= date( 'Y-m-d H:i:s' );
    }
    
    public static function getInstance()
    {
    	static $instance;
    	if(!isset($instance))
    	{ 
        	$instance = new TablePopulateParams();
    	}
        return $instance;
    }
}